<?php
if($idintegrante == ""){
	include_once("../configuracion/config.php");
	$data = data_submitted();
	$idintegrante = $data->idpersona;
}

//print_object($data);
$varTab = $data->tab;
echo "<br>";
echo "<div id='" ."cargando" . "-loading' class='tab-loading'></div>";
echo "<br>";
$arrayvarTab = explode('_',$varTab);
$varTab = $arrayvarTab[0];
//echo $varTab[0];

if (strlen($varTab) == 0) {
	$varTab = "tab-1";
}

	switch($varTab)
	{
		case 'tab-1':
			include_once("staffhome.php");
			break;
			
		case 'tab-2':
			//echo "Research";
			include_once("staffresearch.php");
			break;
			
		case 'tab-3':
			//echo "Lecturing";
			include_once("stafflecturing.php");
			
			break;
		case 'tab-4':
		    include_once("staffpublicaciones.php");
			break;
		case 'tab-5':
			//echo "Curriculum";
			include_once("staffCV.php");
			
			break;
	}

?>